<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TabBar</title>
    <style>
        /* css样式 */
        *{
            padding: 0;
            margin: 0;
        }
        ul{
            list-style: none;
        }

        /* 元素水平排列： 1. display:inline-block;  2. float:left; 
             3. dispay: flex;
        */
        .g-footer{
            display: flex;
            justify-content: space-around;
            align-items: center;
            height: 60px;
            background-color: #f3f4f6;
        }
        .g-footer .active{
            color: red;
        }


    </style>
</head>
<body>
    <!-- html网页结构 -->
    <ul class="g-footer">
        <li class="active">首页</li>
        <li>分类</li>
        <li>购物车</li>
        <li>我的</li>
    </ul>
</body>
</html>